/* 自定义工具类 */
        .content-auto {
            content-visibility: auto;
        }

        .editor-shadow {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .preview-shadow {
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
        }

        .transition-height {
            transition: max-height 0.3s ease-in-out;
        }

        /* 开关按钮样式 */
        .toggle-slider {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
            background-color: #ccc;
            border-radius: 24px;
            transition: .4s;
            cursor: pointer;
            margin-right: 8px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        #toggle-images-btn:checked + .toggle-slider {
            background-color: #3B82F6;
        }

        #toggle-images-btn:checked + .toggle-slider:before {
            transform: translateX(20px);
        }

        /* 自定义颜色变量 */
        :root {
            --color-primary: #3B82F6;
            --color-secondary: #10B981;
            --color-dark: #1E293B;
            --color-light: #F8FAFC;
            --color-accent: #8B5CF6;
        }

        /* 表格样式 */
        .table-container {
            max-height: calc(100vh - 250px);
            overflow-x: auto;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #CBD5E1 #F1F5F9;
        }

        .table-container::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .table-container::-webkit-scrollbar-track {
            background: #F1F5F9;
            border-radius: 4px;
        }

        .table-container::-webkit-scrollbar-thumb {
            background-color: #CBD5E1;
            border-radius: 4px;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background-color: #94A3B8;
        }

        /* 模态框内容样式 */
        .modal-content {
            max-height: calc(100vh - 200px);
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #CBD5E1 #F1F5F9;
        }

        .modal-content::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: #F1F5F9;
            border-radius: 4px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background-color: #CBD5E1;
            border-radius: 4px;
        }

        .modal-content::-webkit-scrollbar-thumb:hover {
            background-color: #94A3B8;
        }

        /* 预览内容样式 */
        .preview-html {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #fff;
            padding: 1rem;
            border-radius: 0.5rem;
        }

        .preview-html h1,
        .preview-html h2,
        .preview-html h3,
        .preview-html h4,
        .preview-html h5,
        .preview-html h6 {
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .preview-html p {
            margin-bottom: 1rem;
        }

        .preview-html img {
            max-width: 100%;
            height: auto;
            border-radius: 0.375rem;
            margin: 0 auto;
        }

        .preview-html a {
            color: var(--color-primary);
            text-decoration: underline;
        }

        .preview-html blockquote {
            border-left: 4px solid #CBD5E1;
            padding-left: 1rem;
            margin: 1rem 0;
            color: #64748B;
            font-style: italic;
        }

        .preview-html code {
            background-color: #F1F5F9;
            padding: 0.125rem 0.25rem;
            border-radius: 0.25rem;
            font-size: 0.875em;
        }

        .preview-html pre {
            background-color: #F1F5F9;
            padding: 1rem;
            border-radius: 0.375rem;
            overflow-x: auto;
            margin: 1rem 0;
        }

        .preview-markdown {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            padding: 1rem;
            background-color: #fff;
            border-radius: 0.5rem;
            white-space: normal;
            overflow-x: auto;
        }

        /* Markdown内容样式 */
        .preview-markdown h1,
        .preview-markdown h2,
        .preview-markdown h3,
        .preview-markdown h4,
        .preview-markdown h5,
        .preview-markdown h6 {
            margin-top: 1rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #1f2937;
        }

        .preview-markdown h1 {
            font-size: 1.5rem;
        }

        .preview-markdown h2 {
            font-size: 1.375rem;
        }

        .preview-markdown h3 {
            font-size: 1.25rem;
        }

        .preview-markdown p {
            margin-bottom: 0.75rem;
            line-height: 1.6;
        }

        .preview-markdown a {
            color: #3B82F6;
            text-decoration: none;
            font-weight: 500;
        }

        .preview-markdown a:hover {
            text-decoration: underline;
        }

        .preview-markdown blockquote {
            border-left: 3px solid #0ea5e9;
            padding-left: 0.75rem;
            margin: 0.75rem 0;
            color: #4b5563;
            font-style: normal;
        }

        .preview-markdown code {
            background: #f3f4f6;
            padding: 0.125rem 0.25rem;
            border-radius: 4px;
            font-size: 0.875rem;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .preview-markdown pre {
            background: #f3f4f6;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            padding: 0.75rem;
            margin: 0.75rem 0;
            overflow-x: auto;
            font-size: 0.875rem;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .preview-markdown pre code {
            background: transparent;
            padding: 0;
        }

        .preview-markdown ul,
        .preview-markdown ol {
            padding-left: 1.5rem;
            margin: 0.75rem 0;
            line-height: 1.6;
        }

        .preview-markdown ul {
            list-style-type: disc;
        }

        .preview-markdown ol {
            list-style-type: decimal;
        }

        .preview-markdown li {
            margin-bottom: 0.5rem;
        }

        .preview-markdown table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }

        .preview-markdown th,
        .preview-markdown td {
            border: 1px solid #E2E8F0;
            padding: 0.5rem 1rem;
            text-align: left;
        }

        .preview-markdown th {
            background-color: #F1F5F9;
            font-weight: 600;
        }

        .preview-markdown img {
            max-width: 100%;
            height: auto;
            border-radius: 0.375rem;
            margin: 0 auto;
        }

        .preview-markdown hr {
            border: none;
            border-top: 1px solid #E2E8F0;
            margin: 2rem 0;
        }

        .preview-markdown strong {
            font-weight: 600;
            color: #1E293B;
        }

        .preview-markdown em {
            font-style: italic;
        }

        /* 按钮悬停效果 */
        .btn-hover {
            transition: all 0.2s ease-in-out;
        }

        .btn-hover:hover {
            transform: translateY(-1px);
        }

        /* 表格行悬停效果 */
        .table-row-hover:hover {
            background-color: rgba(243, 244, 246, 0.7);
        }

        /* 滚动条美化 */
        .custom-scrollbar::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 4px;
        }

        .custom-scrollbar::-webkit-scrollbar-track {
            background: #f3f4f6;
        }

        /* 模态框动画 */
        .modal-backdrop {
            animation: fadeIn 0.3s ease-out forwards;
        }

        .modal-content {
            animation: slideUp 0.3s ease-out forwards;
        }

        /* 淡入动画 */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* 上滑动画 */
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 表格行悬停效果 */
        .table-row-hover {
            transition: background-color 0.2s ease-in-out;
        }

        /* 输入框聚焦效果 */
        .input-focus {
            transition: all 0.2s ease-in-out;
        }

        /* 加载动画 */
        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        .pulse-animation {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

        /* 深色模式样式 */
        .dark .preview-html {
            color: #E2E8F0;
            background-color: #1E293B;
        }

        .dark .preview-html a {
            color: #93C5FD;
        }

        .dark .preview-html blockquote {
            border-left-color: #475569;
            color: #CBD5E1;
        }

        .dark .preview-html code {
            background-color: #334155;
        }

        .dark .preview-html pre {
            background-color: #334155;
        }

        /* 深色模式Markdown样式 */
        .dark .preview-markdown {
            color: #E2E8F0;
            background-color: #1E293B;
            border-left-color: #10B981;
        }

        .dark .preview-markdown h1,
        .dark .preview-markdown h2,
        .dark .preview-markdown h3,
        .dark .preview-markdown h4,
        .dark .preview-markdown h5,
        .dark .preview-markdown h6 {
            color: #F1F5F9;
        }

        .dark .preview-markdown h1 {
            border-bottom-color: #475569;
        }

        .dark .preview-markdown h2 {
            border-bottom-color: #475569;
        }

        .dark .preview-markdown a {
            color: #93C5FD;
        }

        .dark .preview-markdown blockquote {
            border-left-color: #475569;
            color: #CBD5E1;
            background-color: #334155;
        }

        .dark .preview-markdown code {
            background-color: #334155;
        }

        .dark .preview-markdown pre {
            background-color: #334155;
            border-color: #475569;
        }

        .dark .preview-markdown th,
        .dark .preview-markdown td {
            border-color: #475569;
        }

        .dark .preview-markdown th {
            background-color: #334155;
        }

        .dark .preview-markdown hr {
            border-top-color: #475569;
        }

        .dark .preview-markdown strong {
            color: #F1F5F9;
        }

        .dark .table-container::-webkit-scrollbar-track {
            background: #1E293B;
        }

        .dark .table-container::-webkit-scrollbar-thumb {
            background-color: #475569;
        }

        .dark .table-container::-webkit-scrollbar-thumb:hover {
            background-color: #64748B;
        }

        .dark .modal-content::-webkit-scrollbar-track {
            background: #1E293B;
        }

        .dark .modal-content::-webkit-scrollbar-thumb {
            background-color: #475569;
        }

        .dark .modal-content::-webkit-scrollbar-thumb:hover {
            background-color: #64748B;
        }